package com.dpxiao.news.news.presenter.activity;

import com.dpxiao.news.news.base.BasePresenter;
import com.dpxiao.news.news.base.MyApplication;
import com.dpxiao.news.news.ui.activity.MainActivity;
import com.dpxiao.news.news.utils.ToastUtils;

/**
 * Created by a1899 on 2018/4/12.
 */

public class MainActivityPresenter  extends BasePresenter{


    private MainActivity mainActivity;
    public MainActivityPresenter(MainActivity mainActivity) {

        this.mainActivity = mainActivity;

    }

    public void showToast() {
        ToastUtils.showToast(MyApplication.getApplication(), "hello world");
    }



    @Override
    protected void failed(String msg) {

    }

    @Override
    protected void parserData(String data) {

    }
}
